@font-face {
  font-family: 'Kaushan Script';
  font-style: normal;
  font-weight: 400;
  src: local('Kaushan Regular'), local('Kaushan-Regular'), url("Kaushan.woff") format('woff');
}
li, ul, a, span, em, h3, h4, option, input, div, img{
	-webkit-transition:all 0.3s linear;
	-moz-transition:all 0.3s linear;
	-o-transition:all 0.3s linear;
	transition:all 0.3s linear;
	}
label, h1, h2, h3, h4, h5, h6, a, span, input, select, textarea, button, th, p.log_error, p {
	font-family: Kaushan Script;
	outline: none;
	padding: 5px 10px;
	margin: 0;
	color: black;
	}
td, caption, li, em {
	font-family: 'Exo 2', sans-serif;
	outline: none;
	padding: 5px 10px;
	margin: 0;
	color: white;
}
h1, label {
	color: #EF7F00;
	text-shadow: 1px 2px 1px #000;
}
html {
	width: 100%;
	height: 100%;
}
body {
	margin: 0 auto;
	width: 100%;
	height: 100%;
	min-width: 860px;
	/*background:#161D1C;*/
	background-image: url("../img/bg.jpg");
	background-repeat: no-repeat;
	background-position: center;
	position: relative;
}
#wrapper {
	width: 985px;
	margin: 0 auto;
	position: relative;
}

/*############ FIELDS ############*/
table {
	background: url(../img/space.jpg) no-repeat;
}
td, th {
	display: inline-block;
	padding: 0;
	position: relative;
	z-index: 10
}
.battleground {
	width: 490px;
	height: 470px;
	display:inline-block;
	position: relative;
}
.battleground:first-child{
	border-right: 3px solid black;
	margin: 0 20px 0 0;
}
.battleground.no {
	display:none;
}
.battleSquare, .columnSquare {
	width: 40px;
	height: 40px;
	border: 1px solid white;
}
.battleSquare.choose{
	border-color: red;
	background: rgba(255,0,0,.3);
}
.battleSquare.green{
	border-color: green;
	background: green;
}
.battleSquare.hit {
	background: url(../img/hit.png) no-repeat center center;
}
.battleSquare.missed {
	background: url(../img/missed.png) no-repeat center center;
}
.columnSquare {
	background: #061035;
	color: white;
}
.empty {
	width: 40px;
	height: 40px;
	border: 1px solid #FFFFFF;
}
/*############ !FIELDS ############*/
/*~~~~~~~~~~~~ship placement ~~~~~~~~~~*/
.ship_placement{
	margin: 0;
	padding: 5px 0;
	height: auto;
	max-height: auto;
	list-style-type: none;
	width: 490px;
	display: inline-block;
}
.ship_placement.no {
	max-height: 0;
	padding: 0;
	overflow: hidden;
	display:none;
}
.ship_placement li {
	display: inline-block;
	vertical-align: bottom;
}
.ship_placement li img {
	width: 70px;
}
.ships {
	border: 1px solid #161D1C;
}
.ships:hover, .ships.selected {
	border-color: orange;
}
.ship_display {
	display:block;
	width: 100%;
}

#ship_space {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
}
#ship_space.no {
	display: none;
}
#ship_space img.no {
	display: none;
}
#ship_space img {
	width: 70px;
	position: absolute;
	top: 200px;
	left: -200px;
	transform : rotateZ(135deg);
}
#ship_space img.xpos {
	-moz-transform-origin: 28px 17px;
	-webkit-transform-origin: 28px 17px;
	transform-origin: 28px 17px;
}
#ship_space img.xneg {
	-moz-transform-origin: 32px 28px;
	-webkit-transform-origin: 32px 28px;
	transform-origin: 32px 28px;
}
#ship_space img.ypos {
	margin: 5px 0px 0px -11px;
}
#ship_space img.yneg {
	margin: 4px 0px 0px -12px;
}
/*############ pop up hit ############*/
#reponse {
	position: fixed;
	right: 0;
	top: 0;
	width: 240px;
	height: 100%;
}
.notification {
	position: relative;
	width: 230px;
	margin: 10px 5px;
	height: auto;
	max-height: auto;
	border-radius: 6px;
	background: #73A530;
	box-shadow: 2px 2px 12px #ffff9e;
	opacity: 1;
	position: relative;
}
.notification.fade{
	opacity: 0;
	max-height: 0;
	margin: 0px 5px;
}
.notification p {
	text-align: center;
	display: inline-block;
	padding-top: 10px;
	padding-right: 15px;
}
.notification a {
	background-repeat: no-repeat;
	background-image: url("../img/cross.png");
	position: absolute;
	top: 0;
	right: 0;
	height: 10px;
}
#fade {
	width: 100%;
	height: 100%;
	background: rgba(0,0,0, .6);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
}
#pop_hit {
	position: absolute;
	width: 250px;
	height: 200px;
	overflow: auto;
	border: 20px solid black;
	background: #FFF;
	margin-left: -145px;
	margin-top: -120px;
	top: 50%;
	left: 50%;
	box-shadow: 0 0 25px #FFF;
	border-radius: 20px;
	z-index: 110;
}
#fade.no, #fade.no #pop_hit {
	display: none;
}